<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../lib/vue.js"></script>
    <link rel="stylesheet" href="../lib/animate.min.css">
</head>
<body>
    <div id="app">
        <input type="button" value="toggle" @click="flag=!flag">
        <!-- 将需要实现动画效果的标签 用<transition>标签包裹 -->
        <transition 
        enter-active-class = "bounceIn" 
        leave-active-class = "bounceOut" 
        :duration="{ enter:200,  leave:400}"> 
            <h3 v-if="flag" class="animated">Vue动画演示</h3>    
        </transition>
    </div>
    <script>
        var vm = new Vue({
            el : "#app",
            data: {
                flag:true
            },
            methods:{

            }
        })
    </script>
    
</body>
</html>